public class Nine {
    public static void main(String[] args) {
        int i= 1;
        int count=0;

        while(i <= 100){
            i++;
            if(i % 10==9 || i / 10==9){
                count++;
            }
           // System.out.println(i);
        }
        System.out.println("count="+count);
    }
}
